<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
      	{// 判断登陆状态 }
      	<if condition="true">
	        <li><a id="login_btn" href="javascript:;" data-toggle="modal" data-target="#login-modal">登陆</a></li>
	        <li><a href="{:U('Index/signUp')}">注册</a></li>
			<!-- 登陆模拟框 -->
			<div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			  <div class="modal-dialog">
			    <div class="modal-content">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
			        <h3 class="modal-title" id="myModalLabel">登陆</h3>
			      </div>
			      <div class="modal-body">
				      <form class="form-signin" role="form" action="#" method="post">
				        <h5 class="form-signin-heading text-danger">用户名(或邮箱、手机)或密码错误</h5>
				        <input type="text" id="phoneInput" class="form-control" placeholder="手机号码" required autofocus>
				        <input type="password" id="passwordInput" class="form-control" placeholder="密码" required>
				        <div class="checkbox">
				          <label>
				            <input type="checkbox" id="autoSignInInput" value="remember-me"> 保持登陆状态十天
				          </label>
				        </div>
				        <button ="signInBtn" class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>
				      </form>
			      </div>
			      <div class="modal-footer">
			      	其他登陆方式
			      	<a class="icon-link" href=""><img src="__PUBLIC__/img/weibo.png" alt="weibo"></a>
			      	<a class="icon-link" href=""><img src="__PUBLIC__/img/qq.png" alt="qq"></a>
			      	<a class="icon-link" href=""><img src="__PUBLIC__/img/weixin.png" alt="weixin"></a>
			      </div>
			    </div>
			  </div>
			</div>	<!-- /登陆模拟框 -->
        <else />
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
	          	<span class="glyphicon glyphicon-user"></span> Username <span class="caret"></span>
	          </a>
	          <ul class="dropdown-menu" role="menu">
	            <li><a href="{:U('User/index')}">个人中心</a></li>
	            <li class="divider"></li>
	            <li><a href="{:U('Sign/signOut')}">退出</a></li>
	          </ul>
	        </li>
        </if>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
      	<if condition="true">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">功能大全<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="#">购物车</a></li>
            <li><a href="#">最近浏览</a></li>
            <li class="divider"></li>
            <li><a href="#">我的订单</a></li>
            <li><a href="#">我的积分</a></li>
            <li><a href="#">我的收藏</a></li>
            <li><a href="#">我的评价</a></li>
          </ul>
        </li>
        </if>
        <li><a href="##">论坛</a></li>
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</nav>
<div id="navbar-space"></div>
